package desktop.playerguide.playerlistgroup;

import pulpcore.sprite.ScrollPane;

public class PlayerlistGroup extends ScrollPane{

	private static int counter = 0;
	static double height = 20.0;
	
	public PlayerlistGroup(int x, int y, int w, int h) {
		super(x, y, w, h);
	}
	
	public void addFriend(String name){
		PlayerInformation p = new PlayerInformation(name,0,counter*height,this.width.get());
		add(counter, p);
		counter++;
	}
}
